#ifndef _JSON_MODULE_HPP_
#define _JSON_MODULE_HPP_

#include <string>
#include "rapidjson/document.h"

namespace gentech
{

	class CJSON
	{
	public:
		CJSON();

		~CJSON();

		bool init(std::string str_json_file_path);

		bool read_video_path(std::string &str_video_path);

		bool read_station_name(std::string &str_station_name);

		bool read_camera_number(std::string &str_camera_number);

		bool read_incidient_video_save_folder(std::string &str_folder);

		bool read_incidient_image_save_folder(std::string &str_folder);

		bool read_lane_number_and_gap(double &lane_number, double &lane_gap);

		bool read_id(std::string &id);

		bool read_port(int &port);

	private:
		rapidjson::Document document_;
	};

}

#endif // _JSON_MODULE_HPP_